##!/usr/bin/env python3
# -*- coding: utf-8 -*-

from functools import reduce


def normalize(name):
    def toLower(s):
        return s.lower()

    def fn(x, y):
        return x + y

    r = name[0].upper() + reduce(fn, map(toLower, name[1:]))
    return r


# 测试:
L1 = ['adam', 'LISA', 'barT']
L2 = list(map(normalize, L1))
print(L2)
